﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataBase.DBmodels;
using Prism.Commands;
using Prism.Mvvm;

namespace GreenXi.Model
{
    public class PeakValleyTimeModel: BindableBase
    {
        #region 项目的增删改查
        public DelegateCommand<object> EditProject { get; set; }

        public DelegateCommand AddProject { get; set; }

        public DelegateCommand<object> MoveProjectUp { get; set; }

        public DelegateCommand<object> MoveProjectDown { get; set; }

        public DelegateCommand<object> DelProject { get; set; }

        public DelegateCommand<object> SaveProject { get; set; }

        public DelegateCommand<object> SaveColumn { get; set; }
        public DelegateCommand<object> CloseWindows { get; set; }
        #endregion


        /// <summary>
        /// 类型
        /// </summary>
        private ObservableCollection<string> _SportsMode;
        public ObservableCollection<string> SportsMode
        {
            get => _SportsMode;
            set
            {
                SetProperty(ref _SportsMode, value);
            }
        }

        private timeslot _Timeslot;
        public timeslot Timeslot
        {
            get
            {
                return _Timeslot;
            }
            set
            {
                SetProperty(ref _Timeslot, value);
            }
        }

        private ObservableCollection<timeslot> _TimeslotList;
        public ObservableCollection<timeslot> TimeslotList
        {
            get => _TimeslotList;
            set
            {
                SetProperty(ref _TimeslotList, value);
            }
        }
    }
}
